<!DOCTYPE html>
<html lang="en">

	<include file="Public:header" />
	<include file="Public:page_css" />

	<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">

		<include file="Public:nav" />

		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content no-padding">
						<ul class="list-group">
							<li class="list-group-item">
								<p class="text-success"><a href="{:U('Index/index')}" title="返回首页" class="tip-bottom"><i class="fa fa-home"></i> 首页</a> /
									<a href="#" class="tip-bottom"> 本地生活</a> / <a href="{:U('life/index')}" class="tip-bottom">信息管理</a></p>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<a href="{:U('Life/add')}" class="btn btn-primary">添加信息</a>
		<br />
		<br />
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5><i class="fa fa-tasks"></i> 信息管理</h5>
					</div>
					<div class="ibox-content">
						<table class="table table-bordered">
							<thead>
								<tr class="long-tr">
									<th style="width: 5%">编号</th>										
									<th>标题</th>
									<th>子标题</th>
									<th>所属分类</th>
									<th>图片</th>
									<th>电话</th>
									<th>地址</th>
									<th>创建时间</th>
									<th>更新时间</th>
									<th>是否审核</th>
									<th>是否推荐</th>
									<th style="width: 15%">操作</th>
								</tr>
							</thead>
							<tbody>
								<volist name="list" id="vo">
									<tr class="long-td">										
										<td>{$vo.life_id}</td>
										<td>{$vo.title}</td>
										<td>{$vo.subtitle}</td>
										<td>
											<volist name="list1" id="vo1">
												<if condition="$vo1.cate_id eq $vo.cate_id ">
													{$vo1.cate_name}
												</if>
											</volist>
										</td>
										<td><img src="__ROOT__/Uploads/{$vo.photo}" style="width: 120px;height: 60px" /></td>
										<td>{$vo.mobile}</td>
										<td>{$vo.addr}</td>
										<td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
										<td>{$vo.last_time|date='Y-m-d H:i:s',###}</td>	
										<td>
											<if condition="$vo.audit eq 1 ">
												已审核
												<else/>
						 						未审核              
											</if>
										</td>
										<td>
						    				<if condition="$vo.is_red eq 0 ">否</if>
						    				<if condition="$vo.is_red eq 1 ">推荐</if>
										</td>
										<td>
											<a href="{:U('edit',array('life_id'=>$vo['life_id']))}" class="btn btn-primary btn-mini">
												<i class="fa fa-pencil"></i> 编辑</a>&nbsp;&nbsp;
											<a onClick="return confirm('是否删除此条记录')" href="{:U('del',array('life_id'=>$vo['life_id']))}" class="btn btn-danger">
												<i class="fa fa-trash-o"></i> 删除</a>
										</td>										
									</tr>
								</volist>
							</tbody>
						</table>
						<div class="pages" style=" text-align: right;">
							{$page}
						</div>
					</div>
				</div>
			</div>
		</div>
		<include file="Public:footer" />
	</body>
</html>